﻿<UserControl x:Class="Esponce.MainPage"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:m="clr-namespace:Esponce.Models"
	mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400">
	<UserControl.DataContext>
		<m:MainViewModel />
	</UserControl.DataContext>
	<Grid x:Name="LayoutRoot" Background="#E5E5E5">
		<Grid Margin="20">
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="10" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>
			<Grid Grid.Row="0">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="*" />
					<ColumnDefinition Width="10" />
					<ColumnDefinition Width="Auto" />
				</Grid.ColumnDefinitions>
				<TextBox Grid.Column="0" Text="{Binding Content, Mode=TwoWay}" />
				<Button Grid.Column="2" Content="Generate" Click="Generate_Click" Padding="7,4,7,4" />
			</Grid>
			<Border Grid.Row="2" Style="{StaticResource BorderStyle}">
				<Image Source="{Binding Image}" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="None" />
			</Border>
		</Grid>
	</Grid>
</UserControl>
